package Boundry.GenericTools;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;

import Controllers.GlobalData;
import GUI.LogGUI;
import javax.swing.border.TitledBorder;

public class RequestTableListPanel extends TableListPanel implements IPanelOperation 
{
	private JTable table;
	
	public RequestTableListPanel() 
	{
		super(796, 320,"");
		tablepanel.setBorder(new TitledBorder(null, "Step 1 : Select Request", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		tablepanel.setSize(796, 305);
		tablepanel.setLocation(34, 48);
		
	}
	@Override
	public String apHelpButton() 
	{	
		return "In this stap, thr user need to coohse one request to be hendel";
	}

	
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JFrame frame = new JFrame();
					frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					frame.setSize(GlobalData.FrameWidth,GlobalData.FrameHeight);
					//frame.setBounds(100, 100, 550, 500);
					RequestTableListPanel b = new RequestTableListPanel();
					frame.getContentPane().add(b);
					frame.setVisible(true);
					
			    	String[] columnNames2 = { "number", "name", "status","Command" };
			  	    String[][] tableData2 = {{"1",     "avi",     "done"    , "11234" },
				                                {"2",   "dos",     "done" , "11234"    },
				                                {"3",  "tres",    "done"    , "11234" },
				                                { "4", "cuatro",  "done", "11234"},
				                                { "5",   "cinco",   "done" , "11234"},
				                                { "6",    "seis",    "done"   , "11234" },
				                                { "7",   "siete",   "done" , "11234" } ,
				                                { "8",   "siete",   "done"  , "11234"},
				                                { "9",   "siete",   "done"  , "11234"},
				                                { "10",   "siete",   "done"  , "11234"},
				                                { "11",   "siete",   "done"  , "11234"},
				                                { "12",   "siete",   "done"  , "11234"},
				                                { "13",   "siete",   "done"  , "11234"},
				                                { "14",   "siete",   "done"  , "11234"},
				                                { "7",   "siete",   "done" , "11234" } ,
				                                { "8",   "siete",   "done"  , "11234"},
				                                { "9",   "siete",   "done"  , "11234"},
				                                { "10",   "siete",   "done"  , "11234"},
				                                { "11",   "siete",   "done"  , "11234"},
				                                { "12",   "siete",   "done"  , "11234"},
				                                { "13",   "siete",   "done"  , "11234"},
				                                { "14",   "siete",   "done"  , "11234"},
				                                { "7",   "siete",   "done" , "11234" } ,
				                                { "8",   "siete",   "done"  , "11234"},
				                                { "9",   "siete",   "done"  , "11234"},
				                                { "10",   "siete",   "done"  , "11234"},
				                                { "11",   "siete",   "done"  , "11234"},
				                                { "12",   "siete",   "done"  , "11234"},
				                                { "13",   "siete",   "done"  , "11234"},
				                                { "14",   "siete",   "done"  , "11234"},
				                                { "7",   "siete",   "done" , "11234" } ,
				                                { "8",   "siete",   "done"  , "11234"},
				                                { "9",   "siete",   "done"  , "11234"},
				                                { "10",   "siete",   "done"  , "11234"},
				                                { "11",   "siete",   "done"  , "11234"},
				                                { "12",   "siete",   "done"  , "11234"},
				                                { "13",   "siete",   "done"  , "11234"},
				                                { "14",   "siete",   "done"  , "11234"},
				                                { "15",   "siete",   "done"  , "333333"}};
			  	   // Thread.sleep(5000);
			  	    b.buildTabel(columnNames2, tableData2);
					
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	@Override
	public String setTitle() {
		// TODO Auto-generated method stub
		return null;
	}


}
